/*
 Copyright 2010 Victor Mayoral Vilches
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation, either version 3 of the License, or
 (at your option) any later version.
 
 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

//
//  MotionViewController.h
//  NaoRemote
//
//  Created by Victor Mayoral Vilches on 23/11/09.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "Reachability.h";

extern  NSString *  direccion_ip_host;
extern  NSString *  puerto_host;

@interface MotionViewController : UIViewController <UITextFieldDelegate,UIAlertViewDelegate> {
    IBOutlet UIButton *walkButton;
    IBOutlet UIButton *walkButtonLandscape;
    IBOutlet UIButton *turnRightButtonLandscape;
    IBOutlet UIButton *turnLeftButtonLandscape;
    IBOutlet UIButton *imagen;    
    IBOutlet UIButton *video;
    IBOutlet UILabel *etiq1;
    IBOutlet UITextView *textView;    
    
    IBOutlet UITextField *ip;
    IBOutlet UITextField *puerto;
    IBOutlet UILabel *ip_label;
    IBOutlet UILabel *puerto_label;
    UIView *subview;
    
    int videoEstate;

    //Monitorización del servidor al cual nos queremos conectar    
    Reachability* hostReach;
//    Reachability* internetReach;
//    Reachability* wifiReach;
    
    
}
//Getters and setters 
@property UIView *subview;


- (IBAction)helloButton:(id)sender;
- (IBAction)walkButton:(id)sender;
- (IBAction)turnRightButton:(id)sender;
- (IBAction)turnLeftButton:(id)sender;
- (IBAction)recibirImagen:(id)sender;
- (IBAction)clearFootSteps:(id)sender;
//- (IBAction)comprobarConectividad:(id)sender;
- (IBAction)videoButton:(id)sender;    
@end
